package com.jintian.smart.kernel.security.mapper;

import com.jintian.smart.base.api.security.entity.DataTracerEntity;
import com.jintian.smart.base.api.security.form.DataTracerQueryForm;
import com.jintian.smart.base.api.security.view.DataTracerVO;
import com.jintian.smart.kernel.orm.mapper.IBaseExtMapper;
import org.beetl.sql.core.page.PageResult;
import org.beetl.sql.mapper.annotation.Mapper;
import org.beetl.sql.mapper.annotation.Param;
import org.beetl.sql.mapper.annotation.SqlResource;

import java.util.List;

/**
 * dao： t_data_tracker
 */
@Mapper
@SqlResource("security.DataTracer")
public interface DataTracerMapper extends IBaseExtMapper<DataTracerEntity> {
    /**
     * 操作记录查询
     */
    List<DataTracerVO> selectRecord(@Param("dataId") Long dataId, @Param("dataType") Integer dataType);

    /**
     * 分页查询
     */
    PageResult<DataTracerVO> query(@Param("queryForm") DataTracerQueryForm queryForm);
}
